package com.gong.common;

import java.io.IOException;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;

@WebServlet(name="index",urlPatterns="/index")
public class IndexServlet extends HttpServlet
{
	@Override
	public void doGet(HttpServletRequest request,HttpServletResponse reponse) throws IOException{
		System.out.println("########IndexServlet doGet########");
		reponse.getWriter().append("Hello World!");
		reponse.getWriter().flush();
		reponse.getWriter().close();
	}
	
	protected void doPost(HttpServletRequest request,HttpServletResponse reponse) throws IOException{
		this.doGet(request, reponse);
	}
}
